package com.rabbiter.service.Impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.rabbiter.entity.Tickets;
import com.rabbiter.mapper.TicketsMapper;
import com.rabbiter.service.TicketsService;
@Service
public class TicketsServiceImpl implements TicketsService{

    @Resource
    private TicketsMapper ticketsMapper;

    @Override
    public int deleteByPrimaryKey(Integer ticketId) {
        return ticketsMapper.deleteByPrimaryKey(ticketId);
    }

    @Override
    public int insert(Tickets record) {
        return ticketsMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(Tickets record) {
        return ticketsMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(Tickets record) {
        return ticketsMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(Tickets record) {
        return ticketsMapper.insertSelective(record);
    }

    @Override
    public Tickets selectByPrimaryKey(Integer ticketId) {
        return ticketsMapper.selectByPrimaryKey(ticketId);
    }

    @Override
    public int updateByPrimaryKeySelective(Tickets record) {
        return ticketsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Tickets record) {
        return ticketsMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<Tickets> list) {
        return ticketsMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<Tickets> list) {
        return ticketsMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<Tickets> list) {
        return ticketsMapper.batchInsert(list);
    }

}
